package com.coffee.xxljob;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;


/**
 * @author: songkui
 * @since: 2024/01/17
 */
@Getter
@Setter
@ToString
@Configuration
public class XxlJobProperties {


    @Value("${xxl.job.admin.addresses}")
    private String adminAddresses;

//    @Value("${xxl.job.accessToken}")
    private String accessToken = "default_token";

    @Value("${xxl.job.executor.appname}")
    private String appname;

//    @Value("${xxl.job.executor.address}")
    private String address;

//    @Value("${xxl.job.executor.ip}")
    private String ip;

//    @Value("${xxl.job.executor.port}")
    private int port = -1;

    @Value("${xxl.job.executor.logpath}")
    private String logPath;

//    @Value("${xxl.job.executor.logretentiondays}")
    private int logRetentionDays = 30;

}
